﻿using NavTabControl;
using PubSub;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinForm.NET4.Sample.ModuleA.Model;

namespace WinForm.NET4.Sample.ModuleA
{
    public partial class MAPage1 : UIPage
    {
        public MAPage1()
        {
            InitializeComponent();
        }

        private void sfBtnSentStatusMessage_Click(object sender, EventArgs e)
        {
            Hub.Default.Publish("this is a message testing.");
        }

        private void MAPage1_Initialize(object sender, EventArgs e)
        {
            
        }

        private void MAPage1_Load(object sender, EventArgs e)
        {
var data = new OrderInfoCollection();

            // Set the data source for the SfDataPager.
            sfDataPager1.DataSource = data.OrdersListDetails;
            sfDataPager1.PageSize = 50;
            sfDataGrid1.DataSource = sfDataPager1.PagedSource;
        }
    }
}
